﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Yu.Cms.Common;

namespace Yu.Cms.Web.UserCtrl.Admin
{
    public partial class AlbumView : BaseCtrl
    {
        public string PrePhoto = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.OnStart();
            }
        }

        protected void OnStart()
        {
            PrePhoto = YuRequest.GetQueryString("Photo");
            
            int aBigID = YuRequest.GetQueryInt("BigID");
            this.BindrptListView(aBigID);
        }

        /// <summary>
        /// 绑定
        /// </summary>
        protected void BindrptListView(int aBigID)
        {
            int PageIndex = 1;
            int PageSize =int.MaxValue;
            int RecordCount = 0;
            rptPList.DataSource = bllalbum.GetList(aBigID, PageIndex, PageSize, out RecordCount);
            rptPList.DataBind();           
        }
    }
}